package com.ivo.service.report;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ivo.dao.HibernateCaller;
import com.ivo.dao.IBatisCaller;
import com.ivo.ibatis.bom.model.BomReport;
import com.ivo.ibatis.dc.model.DcReport;
import com.ivo.ibatis.gp.model.GpParam;
import com.ivo.ibatis.gp.model.GpReport;
import com.ivo.ibatis.gp.model.GpSummary;
import com.ivo.ibatis.ma.model.MaReport;
import com.ivo.ibatis.ma.model.MaSummary;
import com.ivo.ibatis.pm.model.FollowUpListOnHand;

public class ReportService {
	private HibernateCaller hibernateCaller;
	private IBatisCaller ibatisCaller;
	private IBatisCaller gpCaller;
	
	public ReportService() {}

	public HibernateCaller getHibernateCaller() {
		return hibernateCaller;
	}

	public void setHibernateCaller(HibernateCaller hibernateCaller) {
		this.hibernateCaller = hibernateCaller;
	}

	public IBatisCaller getIbatisCaller() {
		return ibatisCaller;
	}

	public void setIbatisCaller(IBatisCaller ibatisCaller) {
		this.ibatisCaller = ibatisCaller;
	}
	
	public IBatisCaller getGpCaller() {
		return gpCaller;
	}

	public void setGpCaller(IBatisCaller gpCaller) {
		this.gpCaller = gpCaller;
	}

	@Transactional
	public List getEifList(String strStatement,Object obj) 
	{
		List objs= ibatisCaller.getObjects(strStatement,obj);
		return objs;
	}
	
	@Transactional
	public List<FollowUpListOnHand> getFurList(String strStatement,Object obj) 
	{
		List objs= ibatisCaller.getObjects(strStatement,obj);
		return objs;
	}
	
	@Transactional
	public List<BomReport> getBomReport(String strStatement, Object obj) 
	{
		List objs= ibatisCaller.getObjects(strStatement, obj);
		return objs;
	}
	
	@Transactional
	public List<DcReport> getDcReport(String strStatement, Object obj) 
	{
		List objs= ibatisCaller.getObjects(strStatement, obj);
		return objs;
	}
	
	@Transactional
	public List<GpReport> getGpReport(String strStatement, Object obj) 
	{
		List objs= gpCaller.getObjects(strStatement, obj);
		return objs;
	}
	
	@Transactional
	public List<GpParam> getGpParam(String strStatement, Object obj) 
	{
		List objs= ibatisCaller.getObjects(strStatement, obj);
		return objs;
	}
	
	@Transactional
	public List<GpSummary> getGpSummary(String strStatement, Object obj) 
	{
		List objs = gpCaller.getObjects(strStatement, obj);
		return objs;
	}
	
	@Transactional
	public List<MaReport> getMaReport(String strStatement, Object obj) 
	{
		List objs = ibatisCaller.getObjects(strStatement, obj);
		return objs;
	}
	
	@Transactional
	public List<MaSummary> getMaSummary(String strStatement, Object obj) 
	{
		List objs = ibatisCaller.getObjects(strStatement, obj);
		return objs;
	}
	
}
